class Task:
    
    doneString = '[done]'
    tickArr = ['[ ] ','[v] ']
    
    def __init__(self, content=None):
        self.ticked = 0 #False
        if None == content:
            self.readContent()
        else:
            self.content = content
    
    def __str__(self):
        return self.tickArr[self.ticked] + self.content
    
    def tick(self):
        self.ticked = 1 #True
    
    def untick(self):
        self.ticked = 0 #False
    
    def checkDone(self):
        splited = self.content.split(self.doneString)
        if splited.pop() == '':
            self.tick()
            self.content = self.doneString.join(splited)
        else: self.untick()
    
    def readContent(self):
        content = str()
        while len(content) == 0:
            print "content: "
            content = raw_input()
        self.content = content


